<template>
  <div class="left-top">
    <div class="left-top_progress">
      <div class="percent_box">
        <!-- <progress-bar percentage="80" abstract="状态：正常" shade="['#FB9955','#FE555C']"/>-->
        <el-progress type="circle" class="percent" :width="150" :stroke-width="18" :show-text="false" :percentage="95"></el-progress>
        <div class="text_box">
          <div class="title">95<span>°C</span></div>
          <div class="text">状态：正常</div>
        </div>
      </div>
      <div class="percent_box">
        <el-progress type="circle" class="percent" :width="150" :stroke-width="18" :show-text="false" :percentage="80"></el-progress>
        <div class="text_box">
          <div class="title">80<span>°C</span></div>
          <div class="text">状态：正常</div>
        </div>
      </div>
    </div>
    <div class="left-top_pedestal">
      <div class="label">温度传感器1</div>
      <div class="label">温度传感器2</div>
    </div>

  </div>
</template>
<script>
// import progressBar from '@/components/progress-bar'
export default {
  components: {
    // progressBar
  },
  data () {
    return {

    }
  },
  methods: {
  }

}
</script>

<style lang="scss" scoped>
.left-top{
  // border: 1px solid red;
  .left-top_progress{
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    margin-top: 70px;
  }
  .left-top_pedestal{
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    font-size: 18px;
    margin-top: -30px;
    height: 120px;
    background: url('~@/assets/images/antiknock/left-top_pedestal.png');
    background-position: left top, right bottom, left top;
    background-repeat: no-repeat, no-repeat, repeat-x;
    background-size: 100% 100%;
    .label{
      width: 150px;
      text-align: center;
    }

  }
  ::v-deep .percent  svg path:nth-child(1) {
      stroke: #03185c;
  }

  ::v-deep .percent  svg path:nth-child(2) {
    stroke: #4adbfa;
  }

  ::v-deep .percent .el-progress__text {
    color: blue;
  }
  .percent_box {
    position: relative;
    text-align: center;
    width: 150px;
  }

  .text_box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    .title{
      font-size: 24px;
      font-weight: 600;
      margin-bottom: 5px;
      span{
        font-size: 16px;
      }
    }
    .text{
      font-size: 14px;
      color: #2EF68C;
    }
  }
}
</style>
